<!DOCTYPE html>
<html>
<head lang="en">
    <s3:data name='EdocDatas.headerScript' />
    <s3:import type="css"></s3:import>
    
<link rel="stylesheet" href="${data:dependencies.cmp}/css/cmp-listView.css${data:buildversion}">
<link rel="stylesheet" href="${data:dependencies.cmp}/css/cmp-search.css${data:buildversion}">

<!-- 
<link rel="stylesheet" href="${data:dependencies.cmp}/css/cmp-picker.css${data:buildversion}">
 -->
    <title></title>
</head>
<body class="cmp-fullscreen">
<header class="cmp-bar cmp-bar-nav head-style">
	<a id="prev" href="javascript:void(0)" class="cmp-pull-left left-btn">
		<span class="see-icon-v5-common-arrow-back"></span><i18n key="Edoc.action.return"></a>
	<a  href="javascript:void(0)" class="cmp-pull-right right-btn">
		<span  id="search" class="see-icon-search"><em class="dot"></em></span>
	</a>
	<h1 id="title" class="cmp-title"><span id="defaultStateName"><i18n key="Edoc.title.pendingList"></i18n></span></h1>
</header>
<div class="cmp-content position_relative">
	<div class=" cmp-control-content cmp-active">
		<div id="edocSummaryListContain" class="cmp-scroll-wrapper">
			<div class="cmp-scroll">
				<ul id="edocSummaryList" class="cmp-list-content approval_list_content col cmp-table-view col-list">
				</ul>
			</div>
		</div>
	</div>
</div>
    <s3:data name='cordova' /> 
	<script src="${data:dependencies.cmp}/js/cmp-i18n.js${data:buildversion}"></script>
	<s3:import type="js"></s3:import>
<script type="text/javascript">
  cmp.i18n.init("${data:dependencies.edoc}/i18n/", "EdocResources");
</script>
<script src="${data:dependencies.cmp}/js/cmp-asyncLoad.js${data:buildversion}"></script>
<script src="${data:dependencies.cmp}/js/cmp-imgCache.js${data:buildversion}"></script>
<script src="${data:dependencies.cmp}/js/cmp-listView.js${data:buildversion}"></script>
<script src="${data:dependencies.cmp}/js/cmp-webviewListener.js${data:buildversion}"></script>
<script src="<s3:data name='dependencies.edoc' />/js/edocSummaryList.js${data:buildversion}"></script>
<link rel="stylesheet" href="${data:dependencies.edoc}/css/cmp-edoc.css${data:buildversion}">

<!-- 
<script src="${data:dependencies.cmp}/js/cmp-picker.js${data:buildversion}"></script>
<script src="${data:dependencies.cmp}/js/cmp-dtPicker.js${data:buildversion}"></script>
<script src="${data:dependencies.cmp}/js/cmp-search.js${data:buildversion}"></script>
 -->
 
 
<!-- js模版 -->
<script type="text/html" id="list_li_tpl">
<% for(var i = 0,len = this.length;i < len; i++){ %>
	<% var obj = this[i]; %>
	<% var urgentLevel = obj.summary.urgentLevel - 1;
	if(obj.summary.urgentLevel>5){
		urgentLevel = obj.summary.urgentLevel;
	}
	%>
		<li class="cmp-list-cell cmp-table-view-cell treatment">
		<!-- 内容区域 -->
		<div class="cmp-slider-handle">
			<!--当前事项状态:mark未读 hold暂存 end结束-->
			<%if(obj.finshed){%>
				<%if(obj.summary.state == '1'){%>
					<div class="mark end"> 
            			<span class="text"><%=cmp.i18n("Edoc.page.lable.button.stop")%></span> 
            		</div>
				<%}else if(obj.summary.state == '3'){%>
					<div class="mark end"> 
            			<span class="text"><%=cmp.i18n("Edoc.page.lable.button.end")%></span> 
            		</div>
				<%}%>
			<%}else if(obj.affairState != '4' && obj.affair.subState == '13'){%>
				<div class="mark hold"> 
            		<span class="text"><%=cmp.i18n("Edoc.page.lable.button.storage")%></span> 
            	</div>
			<%}else if(obj.affair.subState == '11'){%>
				<div class="mark"> 
            		<span class="text"><%=cmp.i18n("Edoc.page.lable.button.unRead")%></span> 
            	</div>
			<%}%>	
			<div affairId="<%=obj.affairId %>" class="cmp-list-cell-info col-list-cell-info">
				<div class="content_info">
					<span class="cmp-ellipsis-2 cmp-pull-left list_title_name">
					
						<%if(obj.secretLevelName != null) { %>
							<span>[<%=obj.secretLevelName%>]</span>
						<% } %>
						<%=obj.summary.subject.escapeHTML() %>
					</span>
					<% if(obj.summary.docMark!="" && obj.summary.docMark != null){%>
						<div class="cmp-pull-left padding_5_0" style="padding:1px;width:88%;vertical-align:middle;">
							<div class="cmp-h6 wh100">
							<%if(urgentLevel == 4){%>
						<span style="text-align: center;display:block;" class="iconfont see-icon-m3-important-newEdoc-<%=	urgentLevel%>"><%=cmp.i18n("Edoc.lel.importantest")%></span>
						<% } else if(urgentLevel == 1){%>
						<span style="text-align: center;display:block;" class="iconfont see-icon-m3-important-newEdoc-<%=urgentLevel%>"><%=cmp.i18n("Edoc.lel.important")%></span>
						<% } else if(urgentLevel == 2){%>
						<span style="text-align: center;display:block;" class="iconfont see-icon-m3-important-newEdoc-<%=urgentLevel%>"><%=cmp.i18n("Edoc.lel.urgent")%></span>
						<% }else if(urgentLevel == 3){ %>
						<span style="text-align: center;display:block;" class="iconfont see-icon-m3-important-newEdoc-<%=urgentLevel%>"><%=cmp.i18n("Edoc.lel.emergency")%></span>
						<%}%>
								<span class="send-name" style="max-width:inherit;width:100%;"><%=obj.summary.docMark.escapeHTML() %></span>
							</div>
						</div>
						<div class="cmp-pull-left padding_5_0" style="padding-top:0px;height:30px;">
					<%}else{%>
						<div class="cmp-pull-left padding_5_0">
					<%}%>
						<div class="cmp-h6">
							<!--发起人 -->
							<%if(listType != 'listSent' && listType != 'listWaitSend'){%>
								<span class="send-name list-sub-text"><%=obj.createPerson%></span>
								<!-- 发起时间-->
								<span class="send-time list-sub-text"><%=obj.createDate%></span>
							<%}else{%>
								<!-- 发起时间-->
								<span class="send-time list-sub-text" style="margin-left:0px;"><%=obj.createDate%></span>
							<%}%>
							<!-- 是否有附件 -->
							<%if(obj.summary.hasAttachments){%>
								<span class="see-icon-accessory list-sub-text" style="color: #6E6E6E;"></span>
							<%}%>
							<% if(obj.edocType != "Done" && obj.backFromName) {%>         
                                <span class="see-icon-v5-common-rollback-fill list-sub-text" style="font-size:12px; color:#FF8300;"></span>
                            <%} %>

							<!--是否超期-->
							<% if(obj.surplusTime == null){ %>
								
							<% } else if(obj.surplusTime[0] == '0' && obj.surplusTime[1] == '0' && obj.surplusTime[2] == '0'){ %>
								<span class="list-sub-text" style="overflow:hidden;">
									<span class="see-icon-v5-common-time list-sub-text" style="color:#fc4906; font-size:12px;"></span>
									<%=cmp.i18n("Edoc.info.extended")%>
								</span>
							<%} else if(obj.surplusTime[0] <=0 && obj.surplusTime[1] <=0 && obj.surplusTime[2] <=0) {%>
								<span class="list-sub-text" style="overflow:hidden;">
									<span class="see-icon-v5-common-time list-sub-text" style="color:#fc4906; font-size:12px;"></span>
									<%=cmp.i18n("Edoc.info.extended")%>
								</span>
							<% }else {%>
								<% if(obj.surplusTime[0] != 0){%>
									<span class="see-icon-v5-common-time list-sub-text" style="overflow:hidden; font-size:12px;">
										<%=obj.surplusTime[0]%><%=cmp.i18n("Edoc.label.day")%>
									</span>
								<%}else if(obj.surplusTime[1] != 0) {%>
									<span class="see-icon-v5-common-time list-sub-text" style="overflow:hidden; font-size:12px;">
										<%=obj.surplusTime[1]%><%=cmp.i18n("Edoc.label.hour")%>
									</span>
								<% }else if(obj.surplusTime[2] != 0){%>
									<span class="see-icon-v5-common-time list-sub-text" style="overflow:hidden; font-size:12px;">
										<%=obj.surplusTime[2]%><%=cmp.i18n("Edoc.label.minutes")%>
									</span>
								<%}%>
							<%}%>
						</div>
					</div>
				</div>
				<!--当前节点名称-->
				<% if(obj.affairState != 1 && obj.affairState != 2){%>
					<div class="plaint">
						<!--加签-->
						<%if(obj.fromName != null && obj.fromName != ""){%>
							<span class="add">
								<span class="cmp-icon-synergy-list adduser"></span>
								<span><%=obj.fromName %></span>
							</span>
						<%}%>
						<!--回退-->
						<%if(obj.backFromName != null && obj.backFromName != ""){%>
							<span class="add">
								<span class="cmp-icon-synergy-list back"></span>
								<span><%=obj.backFromName %></span>
							</span>
						<%}%>
					</div>
				<%}%>
			</div>
		</div>
	</li>
<%}%>
</script>
</body>
</html>
<!--******************** auto import check  ****************--!>